package com.xinghou.platform.model.main;

import java.io.Serializable;

import org.bson.types.ObjectId;
import org.springframework.data.annotation.Id;
import org.springframework.data.annotation.PersistenceConstructor;
import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.Document;


/**
 * 
 * @author xuzhen
 *
 */
@Document(collection = "sharedCardLocation_Geo")
public class SharedCardLocationGeo implements Serializable{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	@Id
	private ObjectId _id;
	
	@Indexed
	private Integer cardId;
	@Indexed
	private Integer userId;
	@Indexed
	private Integer storeId;
	
	private Double[] pos;
	
	private Integer areaid;
	
	private Integer type;//sharetype
	private Integer status;
	private Long createtime;
	
	public SharedCardLocationGeo(){
		
	}
	
	@PersistenceConstructor
	public SharedCardLocationGeo(ObjectId _id,Integer cardId,Integer storeId,Integer userId,Double[] pos,Integer areaid,Long createtime,Integer type,Integer status){
		this._id = _id;
		this.storeId = storeId;
		this.userId = userId;
		this.cardId = cardId;
		this.createtime = createtime;
		this.pos = pos;
		this.type = type;
		this.areaid = areaid;
		this.status = status;
	}

	public ObjectId get_id() {
		return _id;
	}

	public void set_id(ObjectId _id) {
		this._id = _id;
	}

	public Double[] getPos() {
		return pos;
	}

	public void setPos(Double[] pos) {
		this.pos = pos;
	}

	public Long getCreatetime() {
		return createtime;
	}

	public void setCreatetime(Long createtime) {
		this.createtime = createtime;
	}

	public Integer getAreaid() {
		return areaid;
	}

	public void setAreaid(Integer areaid) {
		this.areaid = areaid;
	}

	public Integer getCardId() {
		return cardId;
	}

	public void setCardId(Integer cardId) {
		this.cardId = cardId;
	}

	public Integer getUserId() {
		return userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	public Integer getStoreId() {
		return storeId;
	}

	public void setStoreId(Integer storeId) {
		this.storeId = storeId;
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}


}
